Tags: livewire/blaze
Tags
Optimize slot extraction and appendable attribute merging (#151) * Optimize slot extraction and appendable attribute merging Skip the extract() call for slots when the slots array is empty — self-closing components always pass an empty slots array, making this a no-op. Simplify appendable attribute merging (class/style) by replacing the intermediate array + in_array + implode pattern with direct conditional assignment. The old code built a temporary array of at most 2 elements, checked for duplicates with in_array, then imploded — all unnecessary when there are only two possible values (default and current). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add no-attributes and merge/class benchmarks This adds ~2x CI time (3 benchmarks instead of 1) but covers the three most representative scenarios: props (general), merge (attribute merging), and no-attributes (baseline overhead). * Revert * Revert Wrapper changes --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Filip Ganyicz <ganyicz.filip@gmail.com>
PreviousNext