-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lpeg处理sql语法,嵌套次数太多时,内存爆炸,正在查原因,估计是pattern相加的时候TTRee每个都copy了一遍 #1384
Comments
local log = require "log" local lpeg = require "lpeg" local strchars = Cs((C(S("\0\b\n\r\t\26\'"")) / "\%1" + 1) ^ 0) local upper = string.upper local function ignore_case_p(k) local keywords = { local word = setmetatable({},{ local keywords_p local op = setmetatable({},{ local k_not = word["not"] local function sql_pattern()
end sql_pattern() |
跟 skynet 有关系吗,免费帮忙修 bug ? |
最近太忙,修了一半还没搞完呢,不管是不是skynet的问题,skynet也在用,放出来大家知道也好 |
用 lpeg 处理 SQL 语法, 是想做点啥呢? |
建议存json 现在主流数据库都支持json查询 如postgresql |
[2021-04-12 18:10:24.484] SYSTEM 00000002: LAUNCH snlua bootstrap
[2021-04-12 18:10:24.485] SYSTEM 00000003: LAUNCH snlua launcher
[2021-04-12 18:10:24.485] SYSTEM 00000004: LAUNCH snlua cdummy
[2021-04-12 18:10:24.485] SYSTEM 00000005: LAUNCH harbor 0 4
[2021-04-12 18:10:24.485] SYSTEM 00000006: LAUNCH snlua datacenterd
[2021-04-12 18:10:24.485] SYSTEM 00000007: LAUNCH snlua service_mgr
[2021-04-12 18:10:24.485] SYSTEM 00000008: LAUNCH snlua service_provider
[2021-04-12 18:10:24.486] SYSTEM 00000009: LAUNCH snlua service_cell ltls_holder
[2021-04-12 18:10:24.490] SYSTEM 0000000a: LAUNCH snlua main 1
[2021-04-12 18:10:24.510] SYSTEM 0000000a: Memory warning 33.01 M
[2021-04-12 18:10:24.533] SYSTEM 0000000a: Memory warning 68.54 M
[2021-04-12 18:10:24.565] SYSTEM 0000000a: Memory warning 134.53 M
[2021-04-12 18:10:24.637] SYSTEM 0000000a: Memory warning 281.22 M
[2021-04-12 18:10:24.772] SYSTEM 0000000a: Memory warning 533.03 M
[2021-04-12 18:10:26.539] SYSTEM 0000000a: Memory warning 1055.58 M
[2021-04-12 18:10:29.105] DUMP (./geek/script/test.lua:365)
[2021-04-12 18:10:29.116] SYSTEM 0000000b: LAUNCH snlua debug_console 8008
[2021-04-12 18:10:29.116] SYSTEM 0000000b: Start debug console at 127.0.0.1:8008
[2021-04-12 18:10:29.117] SYSTEM 00000002: KILL self
The text was updated successfully, but these errors were encountered: