Skip to content

perf: faster color parsing#9001

Merged
NathanWalker merged 2 commits into
NativeScript:masterfrom
Akylas:faster_known_colors
Nov 10, 2020
Merged

perf: faster color parsing#9001
NathanWalker merged 2 commits into
NativeScript:masterfrom
Akylas:faster_known_colors

Conversation

@farfromrefug
Copy link
Copy Markdown
Collaborator

Also know the rework parser shares the same known colors (faster, smaller bundle)
There are some eslint fixes in there hope it is fine

Also know the rework parser shares the same known colors  (faster, smaller bundle)
There are some eslint fixes in there hope it is fine
@cla-bot cla-bot Bot added the cla: yes label Nov 1, 2020
@rigor789 rigor789 changed the title fix: faster colors handling perf: faster color parsing Nov 1, 2020
Comment thread packages/core/css/parser.ts Outdated
@@ -1,3 +1,5 @@
import { getKnownColor } from "color/known-colors";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @farfromrefug - Let's make this relative import instead of barrel.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry did not see that. Vscode did that ;)

Copy link
Copy Markdown
Contributor

@NathanWalker NathanWalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent thank you 💯

@NathanWalker NathanWalker added the ready for test TSC needs to test this and confirm against live production apps and automated test suites label Nov 6, 2020
@NathanWalker NathanWalker merged commit c569236 into NativeScript:master Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready for test TSC needs to test this and confirm against live production apps and automated test suites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants