Skip to content

Commit

Permalink
Improve comment for why ManuallyDrop
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Apr 16, 2024
1 parent 2aa4f6f commit 29361f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/javy/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ pub struct Runtime {
/// The inner QuickJS runtime representation.
// We use `ManuallyDrop` to avoid incurring in the cost of dropping the
// `rquickjs::Runtime` and its associated objects, which takes a substantial
// time.
// amount of time.
//
// This assumes that Javy is used for short-lived programs where the host
// will collect the instance's memory when execution ends, making these
// drops unnecessary.
Expand Down

0 comments on commit 29361f3

Please sign in to comment.