github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
4.2 KiB

  1. #pattern framesize, memory
  2. /abcd/
  3. Memory allocation (code space): 15
  4. Frame size for pcre2_match(): 128
  5. abcd\=memory
  6. malloc 20480
  7. 0: abcd
  8. abcd\=find_limits
  9. Minimum heap limit = 1
  10. Minimum match limit = 2
  11. Minimum depth limit = 2
  12. 0: abcd
  13. /(((((((((((((((((((((((((((((( (^abc|xyz){1,20}$ ))))))))))))))))))))))))))))))/x
  14. Memory allocation (code space): 855
  15. Frame size for pcre2_match(): 624
  16. abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcX\=memory
  17. malloc 40960
  18. free unremembered block
  19. No match
  20. abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcX\=find_limits
  21. Minimum heap limit = 22
  22. Minimum match limit = 37
  23. Minimum depth limit = 35
  24. No match
  25. /ab(cd)/
  26. Memory allocation (code space): 23
  27. Frame size for pcre2_match(): 144
  28. abcd\=memory
  29. 0: abcd
  30. 1: cd
  31. abcd\=memory,ovector=0
  32. free 40960
  33. free unremembered block
  34. malloc 128
  35. malloc 20480
  36. 0: abcd
  37. 1: cd
  38. /\[(a)]{1000}/expand,framesize
  39. Memory allocation (code space): 10007
  40. Frame size for pcre2_match(): 16128
  41. \[a]{1000}\=ovector=1
  42. Matched, but too many substrings
  43. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  44. # The heapframes_size option gets pcre2test to show the size of the heapframes
  45. # vector that after pcre2_match() has run. Running a match with ovector=0
  46. # causes the match data block to be freed, thus releasing that vector.
  47. /\[(a)]{1000}/expand,framesize
  48. Memory allocation (code space): 10007
  49. Frame size for pcre2_match(): 16128
  50. \[a]{1000}\=ovector=1,heapframes_size
  51. Matched, but too many substrings
  52. 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  53. Heapframes size in match_data: 20643840
  54. /a/heapframes_size,framesize
  55. Memory allocation (code space): 9
  56. Frame size for pcre2_match(): 128
  57. a\=ovector=0
  58. 0: a
  59. Heapframes size in match_data: 20480
  60. /a|(b){200}/g,expand,heapframes_size
  61. Memory allocation (code space): 2012
  62. Frame size for pcre2_match(): 144
  63. abacus z\[b]{200}z
  64. 0: a
  65. 0: a
  66. 0: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  67. 1: b
  68. Heapframes size in match_data: 40960
  69. a\=ovector=0
  70. 0: a
  71. Heapframes size in match_data: 20480
  72. /(a)/replace=>$1<
  73. Memory allocation (code space): 17
  74. Frame size for pcre2_match(): 144
  75. cat\=heapframes_size
  76. 1: c>a<t
  77. Heapframes size in match_data: 20480
  78. # End