Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Cache parsing of file stem for the same entity part #50

Open
blond opened this issue May 9, 2016 · 0 comments
Open

Cache parsing of file stem for the same entity part #50

blond opened this issue May 9, 2016 · 0 comments

Comments

@blond
Copy link
Member

blond commented May 9, 2016

I think we can slightly speed up scanning if will cache parsing of file stem (basename without extension) for the same entity part.

Example:

button/
  __text/
    button__text.examples/
    button__text.tmpl-specs/
    button__text.gemini-bundles/
    button__text.css
    button__text.js
    button__text.deps.js
    button__text.bemhtml.js
    button__text.bh.js
    button__text.spec.js
    button__text.ru.md
    button__text.en.md

The button__text entity part has 11 techs. Each tech can be written in several levels.

This means that we will be scanning 11 (or more) files with button__text stem.

Now for each file will be called the bemNaming.parse() method.

@blond blond mentioned this issue May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant