[issue27768] ssl: add public API for IA-32 processor capabilities vector

Gregory P. Smith report at bugs.python.org
Tue Aug 16 03:14:37 EDT 2016


Gregory P. Smith added the comment:

This is very architecture specific and focused on low level information that you can also already get from places like /proc/cpuinfo on Linux.

Also, regardless of what capability bits a CPU exposes that has nothing to do with what accelerations the underlying library implementation itself actually supports.

For your example purpose of choosing which algorithm to use, testing the actual performance of each option in your code at startup time seems more foolproof in any application running long enough for performance to be an issue.

I expect in most common situations you can just use ctypes to call this function from openssl if you feel you must use it.

I'm not convinced it belongs in the stdlib.

----------
nosy: +gregory.p.smith

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27768>
_______________________________________


More information about the Python-bugs-list mailing list