(DIR) vector hypertext                                      -- root         
 (DIR) partner program                                       -- special pages
        
       Осенние...краски....Бутылка...к...обеду.....⣀⣀⣤⣤⣤⣤⣤⣤⣤⣄⣄⣀⡀......Мне...хо
       чется...ласки....⣤............⣴⣶⣄⡀.....⣠⣤⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣷⣦⣄.......Я..
       .к...матери......⢹⣷⣤⣀.........⠙⢿⣿⣿⣷⣶⣴⣶⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡤⡀..⠰⣾⡶⣦.
       .еду....Ос                                       ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡌⠁⡀⠈⠄⢐⠸⡇
       е...краски  Ph1o6 3ntry 180509_1036              ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠈⠙⠋..⣃
       утылка...к                                       ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿.⠰⡀...
       ....Мне...хочется.....⣰⠃..⢙⠦⠺⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠉..⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆.⣷...
       ..ласки....Я...к....⢀⣤⡛⢄⠠⣶⠃..⠖⠆⠈⣿⣿⣿⣿⢿⣿⣿⣿⣏...⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇.⢺⡂..
       ....⣤                                                 ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁.⢺⠇...
       ..⢸⣿⢯    #code                                        ⣿⣿⣿⣿⣿⣿⣿⣿⡟⠁.⢀⡟....
       ..⢸⣿⢯                                                 ⣿⣿⣿⣿⣿⣿⣿⣿⡟⠁.⢀⡟....
       ..⢽⣿⣽    As you know I'm often biased in favor        ⣿⣿⣿⣿⣿⣿⣿⣿⠁..⣼⠁....
       ..⠸⣿⣿    of awk, so I just had to rewrite             ⣿⣿⣿⣿⣿⣿⣿⡟.⣠⣾⠃....м
       ..⠸⣿⣿    mediawiki mwimport from perl. And here       ⣿⣿⣿⣿⣿⣿⣿⡟.⣠⣾⠃....м
       а.⠠⡙⣿    are results.                                 ⣿⣿⣿⣿⣿⠟⢋⣴⣼⣿⠏...ате
       а.⠠⡙⣿                                                 ⣿⣿⣿⣿⣿⠟⢋⣴⣼⣿⠏...ате
       
           $ time ./mwimport.pl import.xml >/dev/null
           ./mwimport.pl import.xml > /dev/null  3.34s user 0.01s system 99% cpu 3.354 total
       
           $ time ./mwimport.awk import.xml >/dev/null
           ./mwimport.awk import.xml > /dev/null  13.71s user 2.64s system 99% cpu 16.364 total
       
           $ time ./mwrewrite.awk import.xml >/dev/null
           ./mwrewrite.awk import.xml  4.98s user 0.25s system 99% cpu 5.227 total
       
       mwimport.awk was straightforward to  write, it's usual pattern-matching
       style of awk, like for example md2html kind of converters. It's easy to
       read and extend. But somewhat as expected - it's dead slow.
       
       OTOH rewrite didn't give desired improvement,  so you have to live with
       it until i find something. today awk sucks :c
       
       WARNING: awk scripts are broken and won't convert mediawiki XML correctly!
       
       UPDATE: and i finally found wtf after hours of polishing all bugs
           there was critical typo in flush(), which should be:
       
           dump_text = dump_page = dump_rev = ""
       
       so now it's 1.1 second vs 3.5 with perl. Quite canonical ratio.
       
       UPDATE2: pattern-matching styled example is now 1.5 seconds,
       which is still 2 times better than perl.
       
       Original perl mwimport: [1]
       Awk rewrite (pattern-matching style): [2]
       Rewrite of awk rewrite: [3]
       
       
       ..⢸⣿⢯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣤..⢈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠁.⢀⡟....
       ..⢽⣿⣽⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⢄⠈⢞⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁..⣼⠁....
       Links:
 (HTM) [1] https://meta.wikimedia.org/wiki/Data_dumps/mwimport
 (TXT) [2] mwimport.awk
 (TXT) [3] mwrewrite.awk
       ..⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠟⠟⠿⠿⡿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠕⠃⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟.⣠⣾⠃....м
       а.⠠⡙⣿⣿⣿⡟⠉⠉⠉⠚⠛⠉⠉⠉⠉⠉⠙⠛⠿⠿⠋⠁.........⠈⠙⠻⢿⣿⣿⣿⣿⠃..⠘⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⢋⣴⣼⣿⠏...ате
       .еду....Осенние...крас...⠈.⡀⠡⣺⡾⢠⣶⠷⡆......⠻⣿⣀....⠙⠻⠿⠿⠍⠏⠉⠁⠁..⢀⣶⣿⡟⠁...ски.
       ...Бутылка...к...обеду......⠛⢮⣄⣀⠻⢼⢄⡀.....⣶⠬⢿⣧⣿⣦⡄.........⢀⣴⣿⣿⡏.....Мне.
 (QRY) Leave comment
       .к...матери......⢹⣷⣤⣀.........⠙⢿⣿⣿⣷⣶⣴⣶⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡤⡀..⠰⣾⡶⣦.
       .еду....Осенние...⠙⣿⣿⣿⣿⣿⣾⣶⡤⢄⡀..⢀⣽⣿⣿⣿⣿⣿⣿⣿⣷⣶⡬⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡌⠁⡀⠈⠄⢐⠸⡇
       е...краски....Бу...⠈⠙⠿⣿⣿⣿⣿⣿⣧⡀⣤⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇.⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠈⠙⠋..⣃
       утылка...к...обеду....⠘⢿⠟⠛⠛⠿⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃.⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿.⠰⡀...
       Post categories:
 (DIR) #code
       ....Мне...хочется.....⣰⠃..⢙⠦⠺⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠉..⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆.⣷...
       ..ласки....Я...к....⢀⣤⡛⢄⠠⣶⠃..⠖⠆⠈⣿⣿⣿⣿⢿⣿⣿⣿⣏...⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇.⢺⡂..
       ...⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣮⡲⣀⣀⠂⢠⣼⣯⣾⣿⣿⣿⣤⡙⠟⠛⠃⠂⢠⣭⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇..⣽⠁...
       ..⢸⣿⢯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣤..⢈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠁.⢀⡟....
       ..⢽⣿⣽⣿⣻⣿⣿⣿                                       ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁..⣼⠁....
       ..⠸⣿⣿⣿⣿⣿⣿⣿  2017/2065 // ulcer@sdf.org           ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟.⣠⣾⠃....м
       а.⠠⡙⣿⣿⣿⡟⠉⠉                                       ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⢋⣴⣼⣿⠏...ате
       р..⠉⠈⠉⠁.................⡀............⠈⠻⣿⣿⣆....⢽⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋.⡠⢿⣽⣿⠋...ри..
       .еду....Осенние...крас...⠈.⡀⠡⣺⡾⢠⣶⠷⡆......⠻⣿⣀....⠙⠻⠿⠿⠍⠏⠉⠁⠁..⢀⣶⣿⡟⠁...ски.
       ...Бутылка...к...обеду......⠛⢮⣄⣀⠻⢼⢄⡀.....⣶⠬⢿⣧⣿⣦⡄.........⢀⣴⣿⣿⡏.....Мне.
       ..хочется...ласки....Я...к....⠈⠙⠻⢾⣵⣤⣤⣀⣀⣄⣼⣭⣤⣴⣶⣿⣿⣿⣦........⣼⣿⣿⣟......мате
       ри...еду....Осенние...краски......⠈⠈⠉⠉⠃⠛⠉⠋⠉⠉..⠻⣿⣿⣿⣧.....⢰⣿⣿⣿⣿⡆.....Буты
       лка...к...обеду....Мне...хочется...ласки...⠐⠆.⣠⣿⣿⣿⡧......⠸⠿⠿⠟⠃...и....Я
       ...к...матери...еду....Осенние...краски.......⠏⣿⣿⣿⠧....Бутылка...к...об
        
 (DIR) make homepage                                         -- special pages
 (DIR) GTFO                                                  -- root         
       Page views: 7