Date de début:
17:00
Date de fin:
17:00
Lieu:
CPE Lyon (Chimie Physique Electronique)
Ville:
Lyon
Producteur:
-

Durée:
21:35
Type:
video/mp4
Poids:
92.17 Mo
Format:
mp4
Résolution:
320x240
Codec:
-

Faster Regexes: What to do when text matching is your bottleneck? Aaron Crane

We all know how good Perl is at munging text. But what do you do when your Perl text-munging code isn't fast enough for what you're trying to do?

We needed to extract useful information from tens of gigabytes of web-server log files. Our Perl code was simple and obvious, but not fast enough for our purposes. When profiling revealed a frequently-executed regex as the bottleneck, we tried several things to make it faster.

This talk looks at what we did to speed up our regex-heavy code (by a factor of well over 100 in some places), identifying a few general-purpose optimisation techniques on the way.

Aaron Crane

Dernières vidéos