python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] speeding up PyObject_GetItem Raymond Hettinger Thu Mar 26 03:01:08 2009
4% on a micro-micro-benchmark is hardly compelling...I concur! This is utterly insignificant and certainly does not warrant removing the checks. -1 on these sort of fake optimizations. We should focus on algorithmic improvements and eliminating redundantwork and whatnot. Removing checks that were put there for a reason doesn't seem useful at all.To be fair, the main proposed optimization(s) would speed up the microbenchmark by 15-25% (Daniel already stated that the NULL checks didn't have a significant impact). This seems significant, considering that tight loops whose cost is heavily due to array access are common.
I thought people used PyList_GET_ITEM or something similar in those use situations. Raymond _______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- Re: [Python-Dev] speeding up PyObject_GetItem, (continued)
- Re: [Python-Dev] speeding up PyObject_GetItem Raymond Hettinger
- Re: [Python-Dev] speeding up PyObject_GetItem Antoine Pitrou
- Re: [Python-Dev] speeding up PyObject_GetItem Daniel Stutzbach
- Re: [Python-Dev] speeding up PyObject_GetItem Daniel Stutzbach
- Re: [Python-Dev] speeding up PyObject_GetItem Mark Dickinson
- Re: [Python-Dev] speeding up PyObject_GetItem Daniel Stutzbach
- Re: [Python-Dev] speeding up PyObject_GetItem Mark Dickinson
- Re: [Python-Dev] speeding up PyObject_GetItem Antoine Pitrou
- Re: [Python-Dev] speeding up PyObject_GetItem Raymond Hettinger
- Re: [Python-Dev] speeding up PyObject_GetItem Mike Klaas
- Re: [Python-Dev] speeding up PyObject_GetItem Raymond Hettinger <=
- Re: [Python-Dev] speeding up PyObject_GetItem Collin Winter