finetune.h 919 B

1234567891011121314151617181920212223242526272829
  1. /* iksemel (XML parser for Jabber)
  2. ** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net>
  3. ** This code is free software; you can redistribute it and/or
  4. ** modify it under the terms of GNU Lesser General Public License.
  5. */
  6. /* minimum sax buffer size */
  7. #define SAX_BUFFER_MIN_SIZE 128
  8. /* sax parser structure plus extra data of dom parser */
  9. #define DEFAULT_DOM_CHUNK_SIZE 256
  10. /* sax parser structure plus extra data of stream parser */
  11. #define DEFAULT_STREAM_CHUNK_SIZE 256
  12. /* iks structure, its data, child iks structures, for stream parsing */
  13. #define DEFAULT_IKS_CHUNK_SIZE 1024
  14. /* iks structure, its data, child iks structures, for file parsing */
  15. #define DEFAULT_DOM_IKS_CHUNK_SIZE 2048
  16. /* rule structure and from/to/id/ns strings */
  17. #define DEFAULT_RULE_CHUNK_SIZE 128
  18. /* file is read by blocks with this size */
  19. #define FILE_IO_BUF_SIZE 4096
  20. /* network receive buffer */
  21. #define NET_IO_BUF_SIZE 4096