Code Monkey home page Code Monkey logo

Comments (2)

digitalheir avatar digitalheir commented on June 4, 2024

Parallellization gains are limited.

  • Parse phases really need to be processed sequentially, obviously, because complete depends on scan, and scan on predict
  • overall, no gains found really
  • code has been optimized in the process though, so this has not been pointless

Test data to follow

from java-probabilistic-earley-parser.

digitalheir avatar digitalheir commented on June 4, 2024

perf

Pre-optimizedparallel scanparallel predictparallel completeparallelnothingparallel everythingPost-optimization
0000000
12101021294817
19141412124025
16171919168129
20151823225537
31332537254219
24182932226020
27152941169229
29153133197719
26261345183833
27231447155115
54281629255214
28181936265813
46253120332927
42491926625631
68302243343326
38272547269228
49253044467925
422831573613233
505979583211546
137704662408349
114584364469887
523435693615262
1343838704413435
1216156864316139
13773911034716741
143138421615614360
14395621556214971
8758631085013287
9264561565118181
14169871319020076
17886731897423475
160120991919524296
244136811558433097
13023012315991325109
144110111189112205125
138214135176239327153
150124129157250304120
143172240187296277131
164283131235134341138
158208321196130317135
190173323275241292160
169189204234169242261
142245178204157279165
18214611521397310193
1951619715714634092
1731419614814633978
277160156196175323120
261163143162153371152
269160117165161359140
374145114208191389135
282180173221214379160
329188191254184373155
265197221240199272145
224229219245205257166
213215221294220326127
192258243445225203113
218249254353236179121
221239265498239192127
223261293414268179203
242288295218242240140
248315212230236180177
281300326204276202235
316234320206246314171
307306333203177299167
312283201218231510219
445340233229273488286
317271217221188534278
393379237233206550287
361384240246167636352
468363296254195644283
860381399258205554290
407421281269198288259
396327308281224305295
410225353297228355200
421243277307318354214
439243324328231412228
457260336338253496231
463311439337252427245
489291270356257537248
526284278405267432259
561293285376319850267
530352320435307905287
550340313429309889288
584306325446335974303
609341336474338546313
635342345463361577323
667345337455419529312
678369369498361877358
690401393505408835365
750399372512416540379
729434413519437573356
736424425516432548397
751445450543460582412
766458461598494581417
811497438548495598453
861518487566492611464
838634476586471623465
878581522603538653492
992518500617571657544
9416005696455441462489
948602541720633821569
10147035777056111308629
1007613618716611773622
1092685579756601901635
1075981607839656847703
1152734666823633801710
1131700692773721923720
11837666568687001060625
11687147559248331504831
1321809718839734880816
1252821779863722911688
135194774491181510341105
13118578159629071035855
135894084010097761068799
14609317869608781170914
140013648789708221060820
1449102691310138671026870
148993191610679261089829
1560116892311098771158888
15871013989112889614251076
164310361005110594413781190
165413371006111210001612946
170111881125113610491320998
1728112711111259110912371028
1804107510541335112712691037
1796109910921390104213091008
1839126111881345110813331042
1928131212161369115213531123
1931141711571358123514201141
2039124711551395130213761068
2014131212031470129914141149
2033165412701553120514071226
2062146313381516128314651252
2184144914081468128715871239
2161141314471476134815231243
2235138014661546158015301257
2284136914921613146516381314
2276139514721590163817081368
2354146015171606165516231421
2475155015861686166017201463
2433165516731799160317531521
2452157416781755160418791541
2592158416361799161918281569
2564160916681780172018321586
2672166516601868176318681656
2790176216841934187118981657
2751191417641955205719461642
2780177620702149198520371663
2812180118582004199020551830
2917184218391984199420622113
2936197518782051204220932177
2957192220252132215421292178
3094205319262249208322332119
3096208720972187217922501966
3166203721202229209623101863
3283208320572247225022831999
3263216521642394220523772124
3330214722172341220923911989
3406235021932385226824402126
3476223923452566231325432164
3493234423172481247225282141
3563229223972546242926422272
3708250024832605297026222223
3675243625122771240527412276
3744265324942719252126842272
3803255825332725259927462397
3901249628632890252329802380
3940265827582785302028652557
4011266928432823304529212489
4184268727992847273630442457
4138270930142978282030782580
4188280428932972322729962672
4269297730793013304631192645
4377295030233092301932932712
4379292930833206298031442960
4490304732163180311632932810
4675307831473191305734202830
4609306232083410305132732863
4654312034273322336334092997
4905329432723370323535412953
4958320935053382341735423041
4915338433993543343635673189
5077348634033485335537673072
5213337735833552344336243142
5148347434253781352236803258
5277368435203659372936903404
5799368538123728363838493303
5427364636253783358438403366
5552378836863887378538543415
5596367239513872372239503397
5771378937673984383341613419
5766393238874031400740673733
5996384338834167394244473567
7501392440694132398443283637
7308436141134240415443513724
6232414241254320416150043773
6625410342944364419346883815
7000448542494315422144053842
6716437242834815432946064001
6569428943444668438445353964
6555
6737
7455
7116
7277
7135
7743
7857
7566
7641
8058
8313
8526
8745
8635

from java-probabilistic-earley-parser.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.