Commit Graph

19356 Commits

Author SHA1 Message Date
Philip Monk
627df6d41f
ci: add travis as trusted user 2020-06-24 18:36:40 -07:00
Philip Monk
f9d02263ee
jets: use appropriate macro 2020-06-24 17:11:46 -07:00
Philip Monk
361e41e78d
noun: add -C to control memo cache size 2020-06-24 17:08:50 -07:00
Philip Monk
71fa03457c
jets: restore fond/play/peek hooks 2020-06-24 13:42:51 -07:00
matildepark
77925b06be
Merge pull request #3048 from urbit/mp/spa-debug-debug
dbug: init new channel on start
2020-06-24 12:01:20 -04:00
Matilde Park
67a09d7d19 dbug: init new channel on start 2020-06-23 21:46:20 -04:00
matildepark
32b045cd5e
Merge pull request #3038 from urbit/lf/ts-global-store
interface: global (typed) store
2020-06-23 21:18:31 -04:00
Liam Fitzgerald
98f9dddebe Merge branch 'release/next-userspace' into lf/ts-global-store 2020-06-24 11:16:44 +10:00
Liam Fitzgerald
5bcbfe25a4 contacts-js: dismiss spinner on share 2020-06-24 11:11:13 +10:00
ixv
3d27c63a21
Merge pull request #3042 from urbit/mp/publish/restore-edits
publish: edit post content no longer tied to api
2020-06-23 17:51:17 -07:00
Matilde Park
42adb02b6b groups: fix broken image upload src 2020-06-22 22:38:21 -04:00
Matilde Park
ceff9626c5 publish: edit post content no longer tied to api
The component for editing a post was tied up in checking for API
instantiation -- we want the check for a blank body to be independent
of that.

Fixes #3040.
2020-06-22 22:36:39 -04:00
Philip Monk
6c3b7aeef5
jam: add commented-out functionality to count size of atom
This is a convenient way to count memory usage of noun by simplying
running `(jam 1.337 noun-1 noun-2 ... ~)`.  This should
be a hint, but for debugging this is sufficient.
2020-06-22 19:29:00 -07:00
Philip Monk
fa6748a7e1
jets: cap memo cache and remove peek, play, and fond jets
With these changes, about 90% less memory and 15% less time is needed to
compile hoon.hoon.  The produced noun is within 3% of the same size,
which suggests this results in little if any duplication.

These are three of the four most commonly hit +ut jets.  The other is
+nest, which cannot be un-memoized without taking much longer to compile
(it didn't finish in my test).  These four jets combined for 2.3 million
out of the 2.4 million cache entries, the other +ut jets combine for
less than 100k, and literal ~+ accounted for about 50k entries.

This also caps the memo cache at 50k entries.  Even with these jets not
memoized, the memo cache grows to 357k entries and 122 MB.  Capping at
50k entries has no effect on time and reduces memory usage of the hash
table to about 25MB.  Entries are reclaimed with the clock algorithm,
which seems to be sufficient for this use.
2020-06-22 19:29:00 -07:00
Philip Monk
d8aed4d4af
noun: add functions to count size of noun
Adds a few functions to count the size of nouns in the current road.
Since this marks the nouns (high bit of refcount), you need to
"discount" them immediately after to unmark them.  Parallel functions
exist for the counting the size of a hashtable.

It would nice to hook this up to a hint, but these are useful to have
available to run in the debugger or by inserting callsites as necessary.
It's also possible to hook them up to the +jam jet gated on a special
value.
2020-06-22 19:29:00 -07:00
Ted Blackman
154f153801 gall: fix routes in +ap-yoke 2020-06-22 21:37:17 -04:00
Liam Fitzgerald
292c5625e3 interface: always show sidebar on nav 2020-06-23 11:05:31 +10:00
Liam Fitzgerald
555857513a launch-js: update to global store 2020-06-23 10:19:57 +10:00
Liam Fitzgerald
7be0831f39 Merge branch 'release/next-userspace' into lf/ts-global-store 2020-06-23 09:33:47 +10:00
Ted Blackman
70ce1d6d5f -test: fixed clay tests 2020-06-22 18:05:55 -04:00
matildepark
7fd2ead858
Merge pull request #3037 from urbit/lf/reconnect-fix
interface: correct order of arguments in resubscribe logic
2020-06-22 10:26:40 -04:00
Matilde Park
5ad03868b2 Merge branch 'master' into release/next-userspace 2020-06-22 10:24:34 -04:00
Liam Fitzgerald
535f415ebd chat-js: update to global store 2020-06-22 16:05:43 +10:00
Liam Fitzgerald
85aa12a5a9 contacts-js: update to global store 2020-06-22 16:04:21 +10:00
Liam Fitzgerald
3a3a6ab254 publish-js: update to global store 2020-06-22 15:40:43 +10:00
Liam Fitzgerald
076e52c27e links-js: update to global store 2020-06-22 15:15:46 +10:00
Liam Fitzgerald
60ff310422 interface: make store global 2020-06-22 14:59:02 +10:00
Liam Fitzgerald
4dfce2a757 interface: correct order of arguments in resubscribe logic 2020-06-20 21:26:44 +10:00
Ted Blackman
652dc70304 clay,dojo: clean up stack traces 2020-06-20 03:46:22 -04:00
Liam Fitzgerald
05b665f908 interface: convert api and reducers to typescript 2020-06-20 14:49:18 +10:00
Philip Monk
6ff9f75bb7
Merge remote-tracking branch 'origin/master' into ford-fusion 2020-06-19 14:52:18 -07:00
Logan Allen
ac864bd42a chat-store: added %trim command as a hack that runs once +on-load and again every 5.000 messages 2020-06-19 14:45:08 -04:00
Ted Blackman
d1b4af89fe sys: s/mure/road 2020-06-19 00:44:17 -04:00
Philip Monk
7494bf57c6
clay: make reachable-takos linear instead of exponential
When merging, +reachable-takos is called roughly once per merge commit
in the ancestry of the new commit.  +reachable-takos was exponential in
the number of merge commits in the ancestry of the commit it's looking
at, due to mishandling of the accumulator.  This makes it linear.

Of course, linear x linear is still quadratic, which is not great.  I
doubt +reachable-takos can be made asymptotically better, but
+reduce-merge-points/+find-merge-points probably can.  50 merge commits
already gives about 14.000 iterations through the loop in
+reachable-takos.  Another option is to try to memoize this somehow, but
a simple ~+ is insufficient since `s` is usually different.

In local tests on macOS with a -L copy of ~wicdev-wisryt, this speeds up
OTAs significantly.  The majority of time was spent on this.
2020-06-18 18:56:31 -07:00
Philip Monk
7206ab6c98
Merge remote-tracking branch 'origin/master' into release/next-sys 2020-06-18 18:50:10 -07:00
Isaac Visintainer
4fded00005 release: urbit-os-v1.0.23 2020-06-18 17:51:16 -06:00
Fang
97f7893619
Merge pull request #2976 from urbit/m/eyre-kill-channels
eyre: expire channels with their sessions
2020-06-19 00:39:42 +02:00
Matilde Park
506c8996d6 interface/config: fix production build 2020-06-18 18:04:30 -04:00
Fang
3ecb6f7154
Merge branch 'release/next-sys' into m/eyre-kill-channels 2020-06-18 22:34:22 +02:00
Fang
b2600f553c
Merge branch 'master' into m/eyre-kill-channels 2020-06-18 22:23:47 +02:00
Fang
e35bb4b72a
pill: update 2020-06-18 21:48:35 +02:00
Fang
2ea3abb5f1
Merge pull request #3001 from urbit/m/eyre-scries
eyre: support scrying into userspace over http
2020-06-18 20:46:36 +02:00
Fang
8cb81370bb
Merge ford-fusion into m/eyre-scries 2020-06-18 20:23:06 +02:00
matildepark
97f188aefc
Merge pull request #3025 from urbit/feat/spa
Landscape: Single-page application rearchitecture
2020-06-18 14:05:10 -04:00
matildepark
bef3ea46a0
Merge pull request #3027 from urbit/lf/soto-fix
soto: run +on-load migration once
2020-06-18 13:11:19 -04:00
Liam Fitzgerald
0ac7a75896 soto: run +on-load migration once 2020-06-18 21:47:44 +10:00
Ted Blackman
f2ee0a1380 drum: fix +on-load resubscribes 2020-06-18 00:58:47 -04:00
Ted Blackman
3914c0c0dd ota: works on my machine 2020-06-17 23:31:37 -04:00
Matilde Park
08b4a47589 publish, links: restore full height 2020-06-17 19:13:34 -04:00
Matilde Park
1cc4067622 sh/build-interface: amend for SPA 2020-06-17 17:42:23 -04:00