Skip to content

Use pointers instead of objects to avoid copying of significant size memory pieces#4

Open
PROger4ever wants to merge 1 commit into
danverbraganza:masterfrom
PROger4ever-Golang:PR/4_Use_pointers_instead_of_objects
Open

Use pointers instead of objects to avoid copying of significant size memory pieces#4
PROger4ever wants to merge 1 commit into
danverbraganza:masterfrom
PROger4ever-Golang:PR/4_Use_pointers_instead_of_objects

Conversation

@PROger4ever
Copy link
Copy Markdown
Contributor

@PROger4ever PROger4ever commented Oct 5, 2018

Introduction

Previous implementation of Varcaser uses objects instead of pointers. It makes program to copy non-small objects every time any method is called. For example, Caser objects include ~9 fields in depth to copy always.

Problem

It is a lot of wasting time to copy objects.

Solution

Use pointer like in the PR :)

Notes

The solution can be incompatible with previous code-usages.

@PROger4ever PROger4ever force-pushed the PR/4_Use_pointers_instead_of_objects branch from d2052b8 to 666917d Compare October 5, 2018 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant