Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
79fc519e
Commit
79fc519e
authored
Jul 12, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
json_udf slowdown
don't call strlen() in the loop
parent
ef125e23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
storage/connect/json.cpp
storage/connect/json.cpp
+2
-2
No files found.
storage/connect/json.cpp
View file @
79fc519e
...
...
@@ -767,7 +767,7 @@ bool JOUTSTR::Escape(const char *s)
{
WriteChr
(
'"'
);
for
(
unsigned
int
i
=
0
;
i
<
strlen
(
s
)
;
i
++
)
for
(
unsigned
int
i
=
0
;
s
[
i
]
;
i
++
)
switch
(
s
[
i
])
{
case
'"'
:
case
'\\'
:
...
...
@@ -816,7 +816,7 @@ bool JOUTFILE::Escape(const char *s)
// This is temporary
fputc
(
'"'
,
Stream
);
for
(
unsigned
int
i
=
0
;
i
<
strlen
(
s
)
;
i
++
)
for
(
unsigned
int
i
=
0
;
s
[
i
]
;
i
++
)
switch
(
s
[
i
])
{
case
'"'
:
fputs
(
"
\\\"
"
,
Stream
);
break
;
case
'\\'
:
fputs
(
"
\\\\
"
,
Stream
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment