Skip to content
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

Refactor char atlas to enable generation with worker #1198

Merged
merged 3 commits into from
Jan 25, 2018

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Jan 6, 2018

This doesn't actually add workers but it separates the code nicely
such that the minimal amount of relevant code can be pulled in by
worker code.

Part of #955


What was done:

  • Pull char atlas generation code into a new file inside shared/ that will be imported by the eventual web worker code, this will allow graceful degradation when workers aren't supported and also code sharing between the main and worker threads.
  • Inlined Generic.ts into Browser.ts as it was only being used there.
  • Added a note to the readme about the code structure

This change shouldn't change any functionality, just structure.

Tyriar added 2 commits January 6, 2018 13:43
This doesn't actually add workers but it separates the code nicely
such that the minimal amount of relevant code can be pulled in by
worker code.

Part of xtermjs#955
@Tyriar Tyriar added this to the 3.1.0 milestone Jan 6, 2018
@Tyriar Tyriar self-assigned this Jan 6, 2018
@Tyriar Tyriar added work-in-progress Do not merge and removed work-in-progress Do not merge labels Jan 22, 2018
parisk
parisk previously approved these changes Jan 25, 2018
Copy link
Contributor

@parisk parisk left a comment

Choose a reason for hiding this comment

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

Great 🍣 ! Kudos for the documentation update also 👍 .

@parisk parisk dismissed their stale review January 25, 2018 14:58

mistake

Copy link
Contributor

@parisk parisk left a comment

Choose a reason for hiding this comment

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

Great 🍣 ! Kudos for the documentation update also 👍 .

Fix tests and it's gtg.

@Tyriar Tyriar merged commit 8f1a629 into xtermjs:master Jan 25, 2018
@Tyriar Tyriar deleted the 955_worker_refactor branch January 25, 2018 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants