Skip to content

Commit

Permalink
Merge pull request #241 from preactjs/perf-improvements-3
Browse files Browse the repository at this point in the history
Perf Improvements 3
  • Loading branch information
marvinhagemeister authored Nov 14, 2022
2 parents 6a0bec2 + f0f62c8 commit fac1544
Show file tree
Hide file tree
Showing 19 changed files with 2,116 additions and 1,770 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-ligers-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"preact-render-to-string": major
---

Improve performance by another 5-10% using `switch` and short-circuiting, and move pretty-printing from into `preact-render-to-string/jsx`.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/npm-debug.log
.DS_Store
/src/preact-render-to-string-tests.d.ts
/benchmarks/.v8.modern.js
/benchmarks/.v8.mjs
2 changes: 1 addition & 1 deletion benchmarks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { h } from 'preact';
import Suite from 'benchmarkjs-pretty';
import renderToStringBaseline from './lib/render-to-string';
// import renderToString from '../src/index';
import renderToString from '../dist/index.mjs';
import renderToString from '../dist/index.module.js';
import TextApp from './text';
// import StackApp from './stack';
import { App as IsomorphicSearchResults } from './isomorphic-ui/search-results/index';
Expand Down
Loading

0 comments on commit fac1544

Please sign in to comment.