You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/2024-07-09-boa-release-19.md
+41-4Lines changed: 41 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
---
1
+
<!-----
2
2
layout: post
3
3
tags: [post]
4
4
title: "Boa release v0.19"
5
5
author: Boa Developers
6
-
---
6
+
----->
7
7
8
8
## Summary
9
9
@@ -51,6 +51,45 @@ Over time we will eventually need to work with other engines to have a more adva
51
51
52
52
This change also offered a nice side effect of not having benchmark or test262 data in the main repository anymore. Last time we released we had [reports](https://www.reddit.com/r/rust/comments/1b91ora/comment/ktue8rf/) of the repository being too large, so we've taken steps to reduce the size of the repository by moving this data to a separate repository and building a nightly version for reporting. Not only this makes it easier for anyone cloning Boa today but pushes to `main` are now much faster due to us not having to run test262 or Benchmarks each time.
53
53
54
+
## Optimizations
55
+
56
+
### Release binary stripping
57
+
58
+
Boa's binaries are on the larger side by default due to including ICU data. We may eventually move to a system where this needs to be fed from the host. However, until then there are other tricks we can employ to bring down our size, one of those is binary stripping. We can remove debug information from the release binary to reduce the size.
59
+
60
+
| crate | v0.18 | v0.19 |
61
+
| ---------- | ----- | ----- |
62
+
| boa | 26MB | 25MB |
63
+
| boa_tester | 27MB | 25MB |
64
+
65
+
### Dense array storage variants for i32 and f64
66
+
67
+
This release adds [dense array storage](https://github.com/boa-dev/boa/pull/3760) variants for `i32` and `f64` types. This allows us to store arrays of these types more efficiently, and also allows us to optimize certain operations on these arrays.
68
+
69
+
If you want to inspect the storage type of an array in Boa you can use the `$boa.object.indexedStorageType()` APi. Here are [some examples](https://github.com/boa-dev/boa/blob/d3e539593fe206f18d44f20498cb54be15477a58/docs/boa_object.md#function-boaobjectindexedstoragetypeobject):
0 commit comments