Skip to content

Make sourcemap generation a bit faster - #2834

Merged
matthew-dean merged 1 commit into
less:masterfrom
Medium:nick-sourcemap
Mar 15, 2016
Merged

matthew-dean merged 1 commit into
less:masterfrom
Medium:nick-sourcemap

Conversation

@nicks

@nicks nicks commented Mar 5, 2016

Copy link
Copy Markdown

see #2828

@nicks

nicks commented Mar 7, 2016

Copy link
Copy Markdown
Author

This basically memoizes the split() call. That way, we split the lines once per file instead of on every mapping. And it provides a class to add future memoization.

@nicks

nicks commented Mar 14, 2016

Copy link
Copy Markdown
Author

hi, is this pull-request OK?

@matthew-dean

Copy link
Copy Markdown
Member

Looks good to me (and a PR from Medium has some clout ;). Pulling. Thanks!

matthew-dean added a commit that referenced this pull request Mar 15, 2016
Make sourcemap generation a bit faster
@matthew-dean
matthew-dean merged commit d094d7e into less:master Mar 15, 2016
@nicks
nicks deleted the nick-sourcemap branch March 25, 2016 15:56
@matthew-dean

Copy link
Copy Markdown
Member

Note that this PR needed to be reverted. You're welcome to open a new PR, but because the first PR passed Less tests, you would need to add tests demonstrating the first PR failing, and the second PR succeeding.

See: #2896

@TheTechmage

Copy link
Copy Markdown

Might want to reopen #2828? 😉

@matthew-dean

Copy link
Copy Markdown
Member

@frostyfrog Good catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants