Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2015-05-08

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:48 ilbot3 joined #marpa
01:48 Topic for #marpa is now Start here: http://savage.net.au/Marpa.html - Pastebin: http://scsys.co.uk:8002/marpa - Jeffrey's Marpa site: http://jeffreykegler.github.io/Marpa-web-site/ - IRC log: http://irclog.perlgeek.de/marpa/today
02:50 ronsavage joined #marpa
03:41 jeffreykegler joined #marpa
06:23 ronsavage joined #marpa
14:38 koo7 joined #marpa
15:15 jeffreykegler joined #marpa
15:37 jeffreykegler I experimented with a new Marpa-based lexing strategy over the past 24 hours.
15:37 Aria Ooh!
15:38 jeffreykegler The one in the SLIF creates a recognizer for each token -- I timed it against a similar Marpa-based lexer which reuses the recognizer.
15:38 jeffreykegler This save the overhead of creating a new Marpa recognizer for each token.
15:38 jeffreykegler Results are mixed news.
15:39 jeffreykegler The gain is speed sets in at about 1000-2000 tokens
15:39 jeffreykegler And is a factor of just over 2x
15:39 jeffreykegler I had expected more -- maybe even 10x
15:39 jeffreykegler Good news: creating recognizers is much faster than I had thought.
15:40 jeffreykegler Bad news: I don't get my 10x lexing speedup and will have to settle for 2x
15:40 jeffreykegler Note that the 2x number comes from a setup that emphasizes any speedup --
15:42 jeffreykegler It used very short (2 character) tokens, forcing the old strategy to create *lots* of recognizers -- one for every two characters.
15:42 jeffreykegler And it is pure lexing out of the context of other overheads.
15:42 Aria Hm!
15:43 jeffreykegler So the actual speedup applications will see will be less than 2x.
15:44 jeffreykegler The new strategy will be implemented in the default Kollos lexer.
18:15 jeffreykegler joined #marpa
18:25 jeffreykegler left #marpa
18:32 lwa joined #marpa
23:07 ronsavage joined #marpa

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary