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

Combine array of elements when typesetting #873

Closed
dpvc opened this issue Jul 19, 2014 · 6 comments

Comments

Projects
None yet
2 participants
@dpvc
Copy link
Member

commented Jul 19, 2014

Currently, MathJax.Hub.Typeset() and its brethren accept an array of containers whose contents should be typeset, but it handles each as a separate typeset call. These should be combined in order to take advantage of chunking and prevent unwanted reflows. The worst-case scenario is when the array is of individual elements that should be typeset, as this would force reflows between each equation.

Instead, the expressions from all the elements in the array should be combined into one list, and that processed all at once in order to take advantage of the optimizations for multiple expressions.

@pkra

This comment has been minimized.

Copy link
Member

commented Jul 21, 2014

Should we create a meta-issue for "queue improvements"? The old requests for better queue/typeset control come to mind (clearing the queue, aborting typesetting etc).

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jul 21, 2014

Ok. If you want to collect some together that would be great.

@pkra pkra referenced this issue Jul 21, 2014

Open

Meta-issue: queue enhancements #875

2 of 3 tasks complete

@dpvc dpvc added this to the Next Release milestone Aug 18, 2014

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Aug 18, 2014

The issue873 branch of my fork of MathJax implements this.

@pkra

This comment has been minimized.

Copy link
Member

commented Aug 19, 2014

==> marked as fixed on #875.

dpvc pushed a commit to dpvc/MathJax that referenced this issue Aug 19, 2014

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Aug 19, 2014

==> Merged.

@dpvc dpvc closed this Aug 19, 2014

@dpvc dpvc added Merged and removed Ready for Review labels Aug 19, 2014

dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Jan 21, 2015

@dpvc dpvc added Test Available and removed Test Needed labels Jan 21, 2015

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jan 21, 2015

==> In Testsuite

Configuration/Hub/elements/issue837.html
(there are already other tests there for a variety of situations; this one just tests the combining of the elements array into one pass).

@dpvc dpvc added Fixed v2.5 and removed Merged labels Jan 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.