harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d0dea0fa2751ee89d588624a4ad97b9e97f43b0d
parent 9e4db683cdd5065fb11b2d53c87b0a3929ed38b4
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  6 Aug 2021 15:40:29 +0200

gen: don't qualify gen_store for tagged w/comment

Let's go forward with gen_copy_aligned until we identify this as a
bottleneck in the future. The main optimization is reducing the number
of copies we need to perform in the first place.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Msrc/gen.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/gen.c b/src/gen.c @@ -120,11 +120,8 @@ gen_store(struct gen_context *ctx, case STORAGE_SLICE: case STORAGE_STRING: case STORAGE_STRUCT: - case STORAGE_TUPLE: - gen_copy_aligned(ctx, object, value); - return; case STORAGE_TAGGED: - // TODO: We can be smarter in this case + case STORAGE_TUPLE: gen_copy_aligned(ctx, object, value); return; case STORAGE_UNION: