Skip to content

Commit

Permalink
Bug 1861068 - Make nsHTML5AttributeName constructors allocate less. r…
Browse files Browse the repository at this point in the history
…=hsivonen

This removes a bunch of allocations on startup.

Java changes: validator/htmlparser#90

Differential Revision: https://phabricator.services.mozilla.com/D191870
  • Loading branch information
emilio committed Oct 25, 2023
1 parent a94102a commit d337733
Show file tree
Hide file tree
Showing 4 changed files with 1,779 additions and 1,551 deletions.
2 changes: 2 additions & 0 deletions parser/html/jArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ class autoJArray {
template <class T, size_t S>
class jInlineArray : public std::array<T, S> {
public:
using std::array<T, S>::array;

template <typename U>
explicit jInlineArray(U* aData) {
T* data = this->data();
Expand Down
Loading

0 comments on commit d337733

Please sign in to comment.