Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
Zipr Backend
Compare revisions
e82bacaebbc3ec7df2cacd6ded702810ad4411b2 to a27a06f0c3c6f8ba50972dc8081c82a5a866ddc1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
opensrc/zipr-be
Select target project
No results found
a27a06f0c3c6f8ba50972dc8081c82a5a866ddc1
Select Git revision
Swap
Target
opensrc/zipr-be
Select target project
No results found
e82bacaebbc3ec7df2cacd6ded702810ad4411b2
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
fixed performance issue related to refactoring
· a27a06f0
Jason Hiser
authored
6 years ago
a27a06f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zipr.cpp
+4
-6
4 additions, 6 deletions
src/zipr.cpp
with
4 additions
and
6 deletions
src/zipr.cpp
View file @
a27a06f0
...
...
@@ -2738,23 +2738,21 @@ void ZiprImpl_t::UpdateScoops()
/*
* Resize the contents.
*/
string
scoop_contents
=
scoop
->
getContents
();
auto
scoop_contents
=
scoop
->
getContents
();
scoop_contents
.
resize
(
scoop
->
getEnd
()
->
getVirtualOffset
()
-
scoop
->
getStart
()
->
getVirtualOffset
()
+
1
);
scoop
->
setContents
(
scoop_contents
);
assert
(
scoop
->
getSize
()
==
scoop_contents
.
size
());
/*
* And now update the contents.
*/
for
(
VirtualOffset_t
i
=
scoop
->
getStart
()
->
getVirtualOffset
();
for
(
auto
i
=
scoop
->
getStart
()
->
getVirtualOffset
();
i
<=
scoop
->
getEnd
()
->
getVirtualOffset
();
i
++
)
{
auto
str
=
scoop
->
getContents
();
str
[
i
-
scoop
->
getStart
()
->
getVirtualOffset
()]
=
memory_space
[
i
];
scoop
->
setContents
(
str
);
scoop_contents
[
i
-
scoop
->
getStart
()
->
getVirtualOffset
()]
=
memory_space
[
i
];
}
scoop
->
setContents
(
scoop_contents
);
// m_firp->getDataScoops().insert(scoop); we added this earlier when we created the obj.
// jdh -- a bit worried that this'll break assumptions in other places
++
it
;
...
...
This diff is collapsed.
Click to expand it.