Journey

Journey chapter

From features to systems

An editable table and large-board performance work pushed me from local fixes toward loading order, adaptive rendering, and explicit correctness contracts.

Systems thinkingPerformance

What changed

In 2022, the scale of my problems changed. I was still working in the editor, but the difficult questions were no longer contained inside one control or one workflow. They crossed the canvas, document loading, image delivery, browser limits, backend responses, and infrastructure.

This was the period when I stopped seeing performance as polish added after a feature. In a visual editor, performance determines whether a feature feels real. A table is not useful if editing its cells causes layout to drift. An infinite canvas does not feel infinite if panning and zooming collapse under a large document. A board has not truly loaded when the screen is still waiting for assets the user cannot even see.

I put a great deal of myself into this period because the work was full of problems without a single owner or a single layer to blame. Solving them meant following the experience wherever it led, including parts of the stack that were new to me.

Building an editable Table

I began the Table element at the end of 2022 and led it through its main build in 2023. The central product choice was that a table would not be rendered as one monolithic object. Its cells could contain real Visily elements that remained individually editable.

That decision made the feature useful. People could edit text and styles per cell, select rows and columns, resize and reorder them, change alignment and padding, apply row colors and stripes, copy styles, use undo and redo, and continue using the surrounding editor capabilities. It also made the implementation much harder.

The Table became a container responsible for the geometry of children that still had their own behavior. Changing a row height could move many descendants. Deleting or restoring a child affected both document state and layout. Reordering columns changed the meaning of cached positions. Resizing needed to preserve relationships without turning every pointer movement into a complete recomputation.

I designed a cached-geometry model with explicit relayout and documented the contract for other developers. Relayout work was batched and performed in a stable order instead of being repeated after every small update. The long tail of edge cases taught me something important: when derived state improves performance, invalidation is not a cleanup detail. It is part of the feature’s architecture.

Making boards useful before everything arrives

At the same time, I worked on board loading across the client, server, and delivery path. The original experience treated loading too much like an all-or-nothing operation. Large responses carried more information than the first visible screen needed, and some API payloads were not benefiting from the compression already used elsewhere.

I approached the problem in layers:

  • Remove redundant requests and data from the initial path.
  • Separate parent and child loading so the editor could tolerate partial state.
  • Prioritize the visible page instead of making users wait for the entire board.
  • Fetch large element collections incrementally rather than through one indivisible read.
  • Add compression for large API responses and tune the delivery layer around real traffic.

No single change tells the whole story. Compression reduced transfer but could not reduce parsing or drawing. Pagination reduced the size of each read but introduced coordination and secondary-view regressions. Visible-first loading improved perceived speed but required the editor to behave correctly while the document was still becoming complete.

I learned to distinguish complete from useful. The fastest route to a useful board was not necessarily the fastest route to having every byte in memory.

Treating images according to how they are used

Images were another part of the same experience. Loading every original image before allowing the board to proceed made image-heavy documents feel blocked. Paying the full network and rendering cost of an image while the board was zoomed far out also spent effort on detail nobody could see.

I implemented and maintained an adaptive image-delivery service within the team’s wider infrastructure. A person editing a board only ever sees the picture they placed. Behind it, the same picture may exist in more than one form, and the editor asks for whichever form suits the way that image is currently being displayed. As people changed the view or resized an element, the editor could move to a more appropriate source instead of always paying the cost of the original.

That substitution was never surfaced in the product, and how the service produces and keeps those sources remains internal. What I can describe is the contract at the boundary: the editor verified a new source before switching to it and kept the current one when a replacement was not available, so the change stayed invisible to the person editing.

This work connected back to the font lesson from 2021. Fonts must often arrive before measurement because they determine text geometry. Images usually do not determine the element’s stored geometry, so they can arrive after the board becomes interactive. Knowing which resources are layout-critical matters more than applying one universal loading rule.

Making rendering adapt to the current view

Reusing rendering work initially looked like a straightforward optimization. In practice, its value and cost changed with document complexity, viewing context, interaction state, and what was currently useful.

I designed an adaptive rendering strategy for complex element trees. Instead of applying one rule everywhere, the editor reconsidered how much work should be reused as the viewing context changed.

The strategy kept rendering work within a predictable budget, avoided effort that did not help the current experience, and stepped aside during active manipulation. The exact mechanism remains internal; the public lesson is that an optimization must adapt when its cost changes.

The important idea was not a particular threshold. It was making rendering strategy responsive to the way the document was currently being viewed. An optimization is only valuable while its maintenance cost remains lower than the work it avoids.

Experiments, reversals, and incomplete answers

This chapter was not a straight sequence of successful ideas. We explored more aggressive reuse strategies, then removed and reconsidered them quickly. The repository records the reversal but not the reason, so I will not rewrite history with a confident explanation I no longer have.

The incremental element-loading path also required a retreat to an older read path in some editor and presenter flows soon after it shipped. The delivery-layer work went through its own cycle of enabling, tuning, removing, and correcting behavior. These reversals are part of the story, not an embarrassment to hide.

They taught me that a locally correct optimization can still violate the experience or assumptions of another surface. Fast feedback and reversible changes mattered, but I should have preserved more of the reasoning, and made the scenarios we did run able to fail a build.

My contribution within the team

My contributions focused on the Table implementation, board-loading improvements, and adaptive canvas-rendering work described here. I implemented and maintained the image-delivery service and its editor-side source-selection behavior.

Many people contributed to the editor and its infrastructure. My part was following the connected path through these problems: recognizing that the experience crossed layers, implementing changes across those layers, documenting new contracts, and staying involved through the long tail after the first version shipped.

This was also when I began initiating mechanisms rather than only implementing assigned behavior. The image service and adaptive rendering strategy were solutions I helped define because the existing shape of the system could not address the problem cleanly.

The judgment I developed

Performance is rarely one clever optimization. It is the accumulated result of deciding:

  • what does not need to be transferred;
  • what can arrive after the first useful interaction;
  • what should be loaded only for the visible region;
  • what can be measured once and safely reused;
  • how rendering work should adapt to the current view;
  • and what event makes every reused value invalid again.

I learned to measure the experience across boundaries instead of optimizing the layer most familiar to me. Network compression cannot reduce the cost of parsing what arrives. Lazy loading cannot help if the visible page is requested last. A cache cannot help if updating it costs more than redrawing. A beautiful abstraction cannot compensate for an interaction that feels wrong.

Most of all, I learned that doing less work requires more precise reasoning. When a system eagerly recomputes everything, it is wasteful but conceptually simple. Once it skips, delays, batches, or caches work, correctness depends on knowing exactly when that work becomes necessary.

Looking back

We did have repeatable performance scenarios, run against fixed fixtures every release. What they lacked was fixed hardware, a controlled network profile, and a budget that could fail a build — so the numbers informed us without ever stopping us. That is what I would establish before the first major optimization.

I would also record why experiments were reversed. A commit can prove that an approach was removed, but the lesson disappears when nobody writes down which assumption failed.

Still, this chapter changed my confidence as an engineer. I had moved from building surfaces inside an existing editor to changing how the editor loaded, rendered, cached, and delivered its documents. I learned that I could enter an unfamiliar layer, understand it deeply enough to improve the user experience, and remain responsible for the consequences after launch.

What this opened next

The same ideas soon appeared at a different boundary. If an internal document model was too heavy or too coupled to move directly, it needed a deliberate representation. If the editor could maintain editable meaning while optimizing how it loaded and rendered, perhaps it could also preserve that meaning while crossing into another design tool—or while accepting structure generated by AI.

That became the next chapter: taking what I had learned about contracts, derived state, and editability beyond Visily’s own runtime.