Skip to content

Tailwind CLI performance? #2839

Closed Answered by SebastianStehle
SebastianStehle asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, I have tried that, but it makes almost no difference.

But I have solved the problem. I have figured out that I can easily measure the performance with the --inspect argument.

So this is my result:

Using this tool I can also debug the CLI and I realized that the CLI was scanning files that I have not seen before. So I found a forgotten node_modules folder that was there because the project has been restructured a while ago and it was scanning all these files. The folder was hidden by the IDE. Stupid me. Now it runs in 60ms. Not super impressive, but more than enough :)

Here is the profile, in case you are interested in my stupidity :D

CPU-20240210T234618.cpuprofile

Lets see if my me…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SebastianStehle
Comment options

@NikarashiHatsu
Comment options

@SebastianStehle
Comment options

Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants