[pypy-dev] Unicode encode/decode speed
Alex Gaynor
alex.gaynor at gmail.com
Mon Feb 11 21:25:01 CET 2013
I've also heard great things about `perf` if you're on Linux.
Alex
On Mon, Feb 11, 2013 at 12:03 PM, Maciej Fijalkowski <fijall at gmail.com>wrote:
> On Mon, Feb 11, 2013 at 7:39 PM, Amaury Forgeot d'Arc
> <amauryfa at gmail.com> wrote:
> > 2013/2/11 Eleytherios Stamatogiannakis <estama at gmail.com>
> >>
> >> >
> >> > Which kind of profiler are you using? It possible that CPython builtin
> >> > functions are not profiled the same way as PyPy's.
> >>
> >> lsprofcalltree.py .
> >>
> >> From APSW's source code, i think that it uses this API:
> >>
> >> (in cursor.c)
> >> PyUnicode_DecodeUTF8
> >>
> >> Maybe lsprofcalltree doesn't profile it?
> >
> >
> > Indeed. CPU cost is hidden in the cursor method.
> >
> >
> > --
> > Amaury Forgeot d'Arc
> >
> > _______________________________________________
> > pypy-dev mailing list
> > pypy-dev at python.org
> > http://mail.python.org/mailman/listinfo/pypy-dev
> >
>
> I would suggest using valgrind. It's a very good (albeit very slow)
> tool for seeing C-level performance. I remember seeing it both for
> CPython and PyPy when trying. Can you try yourself?
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> http://mail.python.org/mailman/listinfo/pypy-dev
>
--
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130211/fe8b387f/attachment.html>
More information about the pypy-dev
mailing list