Skip to content

Commit 378ee57

Browse files
authored
Merge pull request #3 from calcit-lang/refactor
Refactor for performance
2 parents 673213e + f081cb4 commit 378ee57

File tree

9 files changed

+1550
-1890
lines changed

9 files changed

+1550
-1890
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request: {}
88

99
jobs:
@@ -25,10 +25,14 @@ jobs:
2525
2626
- name: "prepare modules"
2727
run: >
28-
mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/ && echo 'no deps'
28+
mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/
2929
&& git clone https://github.com/calcit-lang/calcit-test
3030
3131
- name: "test"
32-
run: mode=ci cr -1
32+
run: cr --entry test -1
3333

34-
- run: mode=ci cr --emit-js -1 && yarn && yarn webpack && node ./js-out/bundle.js
34+
- run: >
35+
cr --emit-js -1 --entry test
36+
&& yarn
37+
&& yarn esbuild test.js --bundle --outfile=js-out/bundle.js --platform=node
38+
&& node ./js-out/bundle.js

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,15 @@ For JavaScript:
1818

1919
```bash
2020
cr --emit-js -1 # emit-js once
21-
yarn webpack
21+
yarn build
2222
node js-out/bundle.js # run code
2323
```
2424

25-
watch reload js program:
25+
### Special cases
2626

27-
```bash
28-
cr --emit-js
29-
30-
# and watch and build with Webpack
31-
hot=true webpack --watch
27+
Nothing could be inserted between `a` and `a+` since `+` is very close to zero. Such a key which ends with `+` should not be created from current implementation.
3228

33-
# run with hot reload
34-
node js-out/bundle.js
35-
```
29+
Smallest visible value is `+`, largest visible values would be `zzzzz.....`(infinitely). They are both tricky.
3630

3731
### Workflow
3832

calcit.cirru

Lines changed: 1249 additions & 914 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)