Skip to content

fix: Optimizations #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 11, 2020
Merged

fix: Optimizations #39

merged 11 commits into from
Dec 11, 2020

Conversation

aminya
Copy link
Contributor

@aminya aminya commented Dec 9, 2020

Optimizes minimap-find-and-replace:

  • Replaces Object with Map which results in faster loops, clearing, etc
  • Adds CSS containment

This is ready for now. I added a big file for testing. Currently, adding/removing decorations is pretty fast. We can do more optimization later if needed.

@aminya aminya force-pushed the optimizations branch 2 times, most recently from b78571f to c9d75fb Compare December 9, 2020 23:45
@aminya aminya marked this pull request as ready for review December 10, 2020 02:05
@aminya aminya requested a review from UziTech December 10, 2020 02:05
@aminya
Copy link
Contributor Author

aminya commented Dec 10, 2020

This is ready for now. I added a big file for testing. Currently, adding/removing decorations is pretty fast. We can do more optimization later if needed.

@aminya
Copy link
Contributor Author

aminya commented Dec 10, 2020

@UziTech Could you invite me to the organization? Although I have full access to minimap repo, I am not a member!

@UziTech
Copy link
Collaborator

UziTech commented Dec 10, 2020

I don't have access to the organization. I just have access to each repo. I think if we are both going to be updating these repos we need to make sure each PR has at least one approval from a person that did not create the PR.

@aminya
Copy link
Contributor Author

aminya commented Dec 10, 2020

OK. No problem. I was just confused about why I am not shown in the member list of the organization.

package.json Outdated
@@ -38,6 +38,7 @@
},
"devDependencies": {
"@semantic-release/apm-config": "^8.0.0",
"@types/atom": "^1.40.5",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this package isn't written in typescript is this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Datatips in JavaScript come from TypeScript. JavaScript itself is not smart enough to know what is going on in the code.

Here, I was checking some of the API of Atom to see where decorate API comes from.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we remove it? I don't see how it helps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It helps the datatips. I reverted it anyway.

@UziTech UziTech changed the title Optimizations fix: Optimizations Dec 11, 2020
@UziTech UziTech merged commit 77d2f40 into atom-minimap:master Dec 11, 2020
@UziTech
Copy link
Collaborator

UziTech commented Dec 11, 2020

If you want to we could convert these packages to typescript.

@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants