pkg icon indicating copy to clipboard operation
pkg copied to clipboard

chore: refactor dictionary handling

Open ignatiusmb opened this issue 2 years ago • 3 comments

Moves dictionary files into a single object in a file, this should reduce bundle size and slightly improve performance because we'll be directly importing the dictionary object, skipping the middleman, so to speak.

I tried to reuse some of the types, but it seems some of them are unused or not quite up to date with the current code, so I updated them as well and tried to match it with the current code as much as possible.

ignatiusmb avatar Sep 14 '22 20:09 ignatiusmb

cc @jesec

robertsLando avatar Sep 20 '22 06:09 robertsLando

@ignatiusmb WOuld like to know @jesec opinion on this before merging

robertsLando avatar Sep 20 '22 07:09 robertsLando

Another pair of eyes never goes wrong 😄

ignatiusmb avatar Sep 20 '22 08:09 ignatiusmb

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Feb 27 '23 00:02 github-actions[bot]

What's left to do?

ignatiusmb avatar Feb 27 '23 06:02 ignatiusmb

The "not understandable" reference was to existing code and variable naming, which you (rightly) continued to follow, not a comment on your code specifically. I'm just looking for the code quality to improve more while you are touching these parts of the code.

baparham avatar Feb 27 '23 15:02 baparham

I'm just looking for the code quality to improve more while you are touching these parts of the code.

I would love to do that, but the changes here are already huge as it is, I would prefer to have that in a separate PR as it may get out of scope if we start touching a lot of unrelated code here.

ignatiusmb avatar Feb 28 '23 18:02 ignatiusmb

can you clarify what problem you are trying to solve? [...] on one hand, it is nice to have the modules in their own separate files, since they do not relate to one another. Changes in one module file should not be part of the history when looking at another module. This pulls them all into one mega-file. Granted, they don't change often, so churn should be low.

To keep it simple and consistent in one file and type-checked with TypeScript, make it easier to add or amend patches in the future, and reduce inefficient path concatenation and fs calls.

ignatiusmb avatar Feb 28 '23 18:02 ignatiusmb

~~Test failures seems unrelated?~~ Good thing we have tests.

ignatiusmb avatar Feb 28 '23 18:02 ignatiusmb

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Jun 27 '23 00:06 github-actions[bot]

This pull-request is now closed due to inactivity, you can of course reopen or reference this pull-request if you see fit.

github-actions[bot] avatar Jul 02 '23 00:07 github-actions[bot]