Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing elkjs bundle size #469

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

testing elkjs bundle size #469

wants to merge 1 commit into from

Conversation

ShiboSoftwareDev
Copy link
Contributor

this is just testing the bundle size

I also discovered some issue, If I remove the workerUrl to try to run it synchronously it breaks here's a related issue: oven-sh/bun#15737

@tscircuitbot
Copy link
Contributor

Size Report

Bundle Size

  • Base branch size: 648K
  • PR branch size: 648K
  • Difference: 0

Install Size

  • Base branch size: 9.05mb
  • PR branch size: 16.81mb
  • Difference: +7.76

Full Howfat Output (PR Branch)

@tscircuit/[email protected] (27 deps, 16.81mb, 1012 files, ©undefined)
╭─────────────────────────────────────────┬──────────────┬───────────┬───────┬───────────┬──────────────┬───────────╮
│ Name                                    │ Dependencies │      Size │ Files │ Native    │ License      │ Deprec    │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @lume/[email protected]                        │              │   121.6kb │    31 │           │ BSD-3-Clause │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]           │            2 │ 1011.14kb │    73 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]   │              │  249.72kb │    14 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]             │              │   23.07kb │    26 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]                │              │  697.36kb │    53 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]   │            3 │  806.89kb │    92 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]             │            1 │  329.98kb │    31 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │            1 │   54.54kb │    27 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                    │            2 │    1.29mb │    68 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                             │              │    7.65mb │    12 │           │ EPL-2.0      │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                    │              │    4.61kb │     6 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                            │              │   10.69kb │    11 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                   │              │   11.08kb │    17 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                 │            3 │    1.05mb │    43 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                            │            2 │  331.04kb │    33 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]               │              │     1.1mb │   163 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]            │              │  430.45kb │    56 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                              │              │  677.75kb │    52 │           │ MIT          │           │
╰─────────────────────────────────────────┴──────────────┴───────────┴───────┴───────────┴──────────────┴───────────╯

(aside)

@ShiboSoftwareDev
Copy link
Contributor Author

@seveibar this library is huge

@ShiboSoftwareDev
Copy link
Contributor Author

@seveibar looks like it needs to be run with node not bun

@seveibar
Copy link
Contributor

oh wow yea that's big. I'm a bit hesitant to pull in something that big...

@seveibar
Copy link
Contributor

@ShiboSoftwareDev Having schematic layout be async and allowing for external schematic layout is fine- but we should determine if elkjs actually works before we put too much effort into it. If it does work, we'll use the async layout engine until we have a decent synchronous layout engine.

But let's see if it can do layout with circuits with a bunch of traces before we commit to that!

@ShiboSoftwareDev
Copy link
Contributor Author

@seveibar I'll do a bunch if tests and configure the algorithm properly and see how it does

@ShiboSoftwareDev
Copy link
Contributor Author

it's pretty good for placements but you'd have to manage your own traces
image

@ShiboSoftwareDev
Copy link
Contributor Author

what I did here is I made the doInitialSchematicTraceRender wait on the layout to be complete
image

@ShiboSoftwareDev
Copy link
Contributor Author

@seveibar i can go forward and configure the algorithm and make more circuits but I want to know what you say about the traces first

@seveibar
Copy link
Contributor

@ShiboSoftwareDev im not sure, i think we need a more representative circuit. Something like the esp32 that Anas put together

@seveibar
Copy link
Contributor

This one would also work, its tricky because it uses other snippets that cant be loaded into a test case, but this is the kind of layout that is pretty common and important for the autolayout engine to do properly https://tscircuit.com/seveibar/rp2040-module

@seveibar
Copy link
Contributor

This is the one i mentioned from Anas that's a pretty good representative layout, can't find that actual snippet though 😭 CC @AnasSarkiz

image

@AnasSarkiz
Copy link
Member

@ShiboSoftwareDev
Copy link
Contributor Author

@seveibar I'll yalc push core to snippets and test with the auto-load snippets feature

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.

4 participants