Loading ...
Sorry, an error occurred while loading the content.

60685Re: Writing large files is slow

Expand Messages
  • Ivan Krasilnikov
    Mar 9, 2011
    • 0 Attachment
      On Sun, Mar 6, 2011 at 12:02, Bram Moolenaar <Bram@...> wrote:
      >> For me, memfile_test linking fails with these errors:
      >> objects/if_xcmdsrv.o: In function `serverEventProc':
      >> src/if_xcmdsrv.c:1362: undefined reference to `serverConvert'
      >> src/if_xcmdsrv.c:1416: undefined reference to `serverConvert'
      >> src/if_xcmdsrv.c:1280: undefined reference to `serverConvert'
      >> src/if_xcmdsrv.c:1282: undefined reference to `server_to_input_buf'
      >> src/if_xcmdsrv.c:1284: undefined reference to `eval_client_expr_to_string'
      >> objects/if_xcmdsrv.o: In function `serverSendToVim':
      >> src/if_xcmdsrv.c:394: undefined reference to `eval_client_expr_to_string'
      >> src/if_xcmdsrv.c:407: undefined reference to `server_to_input_buf'
      > Perhaps this depends on a combination of features?

      Errors disappears if I undefine FEAT_CLIENTSERVER.

      >> In test77.in number of lines to be inserted is decreased to 200 000,
      >> which isn't enough. mf_hash_grow() is first called only after about
      >> 1.5M lines are inserted.
      > With two million lines it just gets too slow.  Is there a way to do this
      > quicker?  It appears it's the loop to insert the lines that is slow,
      > perhaps doing more lines at a time will help.

      How about attached test?

      On Wed, Mar 9, 2011 at 12:20, Lech Lorens <lech.lorens@...> wrote:
      > Before I start debugging my patches would you have any suggestion
      > where I should look first?

      This patch is really only about hashing code in memfile.c. So, look at
      commits which touched that file.

      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 17 messages in this topic