1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Aaron Patterson ✅

@nickkelley the 'o' flag on the regular expression means "compile this regexp once and then cache the results". So the first call creates a regex that contains the marshal dump content, and caches it (in the instruction sequences btw). The second call is like "oh this re is already compiled, so just get the source and marshal load it" which returns the cached hash

1
1y
Replies