Marc-Andre Lemburg <m...@egenix.com> added the comment:

Here's a wheel which only includes the portable code (I disabled
all the special cases as you suggested).

Archive:  dist/blake3_experimental_c-0.0.1-cp310-cp310-linux_x86_64.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
   297680  2022-03-23 19:26   blake3.cpython-310-x86_64-linux-gnu.so
     3183  2022-03-23 19:26   blake3_experimental_c-0.0.1.dist-info/METADATA
      105  2022-03-23 19:26   blake3_experimental_c-0.0.1.dist-info/WHEEL
        7  2022-03-23 19:26   
blake3_experimental_c-0.0.1.dist-info/top_level.txt
      451  2022-03-23 19:26   blake3_experimental_c-0.0.1.dist-info/RECORD
---------                     -------
   301426                     5 files

I didn't run any benchmarks, but it's clear that the SIMD code was
used in my initial build and this adds some 50kB to the .so file.
This is on a older Linux x64 box with Intel i7-4770k CPU.

Could be that the Rust version adds several such SIMD variants and
then branches based on the platform running the code.

In any case, the C extension is indeed very easy to build and
install with a standard compiler setup.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39298>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to