Re: [RFC] Glib::filename_(to|from)_unicode =>Glib->filename_(to|from)_unicode?

Torsten Schoenfeld said:
I implemented the arrow using XS subs[0] and according to my
benchmark[1] the colon syntax is only about 13% faster[2], which is

obviously the extra work is passing the parameter, which is unused. hopefully,
at least for this function that won't matter as i can't imagine it getting
called that frequently. but it's nice to have a number. another interesting
thing to time would be if the class paramter had a type.

const char *
filename_from_unicode_with_class (class, filename)
        SV            * class
        GPerlFilename   filename

obviously early versions of gtk2-perl did this for all sorts of unused params.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]