Potential optimization: read-image

Open
#807 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
clojure
Domain
performance

Research direction

The issue points to read-image and the example notebooks/viewers/image.clj; start by tracing and measuring image loading during evaluation, especially for network images. The issue does not define a target behavior, benchmark, or test, so completion would require agreeing on a concrete optimization scope and validation criteria.

Written by the indexing model from the issue text.

Description

One thing I noticed when testing this is that we do still spend quite a bit of time in read-image during eval, especially when loading images over the network e.g. in notebooks/viewers/image.clj. This is out of scope for this but I wanted to mention it as a potential future optimization.

Originally posted by @mk in https://github.com/nextjournal/clerk/issues/803#issuecomment-4086577545

Dominant language
Clojure
Stars
2.1k
Forks
87
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextjournal/clerk

All issues in nextjournal/clerk

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.