Skip to content

Mollusk 0.14 - #1

Open
sergeytimoshin wants to merge 3 commits into
mainfrom
mollusk-0.14
Open

Mollusk 0.14#1
sergeytimoshin wants to merge 3 commits into
mainfrom
mollusk-0.14

Conversation

@sergeytimoshin

Copy link
Copy Markdown

No description provided.

- Bump mollusk-svm 0.3.0 -> 0.14.0 and solana-program-runtime 2.3 -> 4.1
- Pin solana-hash =4.5.0 to keep wincode 0.5 aligned across the agave 4.1 graph
- Use public ProgramCache::register_builtin_function instead of private field access
- Use built-in solana_program_runtime::memory::translate_slice
- Adapt declare_builtin_function! to the 5-arg InvokeContext<'static, 'static> API
- Update test-program dev-deps and doctest for the new add_program signature

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8afb60d668

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

func_name,
file_location,
total_cu: entry.total_cu,
net_cu: entry.net_cu,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Compute net CU without double-counting descendants

When the Mollusk helper is used on nested profiled calls deeper than one level, post_process() subtracts every descendant from each parent even though a direct child's total_cu already includes its own children. Exposing that value here as ProfileEntry.net_cu makes the new report understate parent Net CU (often clamping it to zero), so benchmark reports become inaccurate for nested #[profile] sections.

Useful? React with 👍 / 👎.

.into_iter()
.enumerate()
.map(|(i, name)| {
let anchor = name.to_lowercase().replace([' ', '_'], "-");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Generate TOC links to the actual numbered headings

Every section is rendered as ## {i}. {display_name}, but the TOC anchor is built only from the raw section name. For a section named sync_transfer, this emits a link to #sync-transfer while the generated heading slug includes the numeric prefix (for example #1-sync-transfer), and display-name overrides make the mismatch worse; generated reports therefore have broken Table of Contents links.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant