Commit e53cd36
fix: Optimize AxeBuilder memory usage. (#1154)
If `AxeBuilder` is instantiated many times, each instance of the class
will store the 250kb axe source string causing performance issues.
I looked at `@axe-core/puppeteer` and they follow the pattern in this
PR:
-
https://github.com/bensenescu/axe-core-npm/blob/develop/packages/puppeteer/src/axePuppeteer.ts#L59
-
https://github.com/bensenescu/axe-core-npm/blob/develop/packages/puppeteer/src/utils.ts#L34
No QA required
Co-authored-by: Ben Senescu <bensenescu@gmail.com>1 parent 527d4bd commit e53cd36
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments