about summary refs log tree commit diff stats
path: root/doc/tools/performance_test.py
Commit message (Collapse)AuthorAgeFilesLines
* doc/tools: Fix shebangnfnty2017-07-301-2/+3
|
* fix pylint nagging about performance_test.py on py2hut2017-07-161-0/+1
|
* add doc/tools/performance_test.pyhut2017-07-161-0/+40
2014-10-07 14:03:09 -0700 121 - finally I can alloc a 2D array' href='/akkartik/mu/commit/edit.mu?h=main&id=239328e4239420fd5d74b66b0759e3d95dbc6469'>239328e4 ^
61c82b8e ^
3eb35073 ^
61c82b8e ^
61c82b8e ^


239328e4 ^
61c82b8e ^
45b1e1f6 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


                                                                         

                        
                                                              
                                     
         
                                                                                          
                                                                          
                                                                 


                                                      
   
                              
 
; a screen is an array of pointers to lines, in turn arrays of characters

(new-screen
  ((601 integer) <- arg)
  ((602 integer) <- arg)
  ((603 screen-address) <- new (screen literal) (601 integer))
  ((604 integer) <- copy (0 literal))
  { begin
    ((606 line-address-address) <- index-address (603 screen-address deref) (604 integer))
    ((606 line-address-address deref) <- new (line literal) (602 integer))
    ((605 line-address) <- copy (606 line-address-address deref))
    ((604 integer) <- add (604 integer) (1 literal))
    ((607 boolean) <- neq (604 integer) (601 integer))
    (continue-if (607 boolean))
  }
  (reply (603 screen-address))
)