Skip to content

Commit 573e50b

Browse files
authored
Merge pull request #521 from vizzuhq/memory-footprint-v1
Reserve marker's space
2 parents e7a8708 + 3402a37 commit 573e50b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2080
-2165
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
- plugin: canvasRenderer - plugin for rendering the chart on a htmlcanvas compatible canvas
2626
- hook: start - hook for starting the rendering loop
2727
- hook: render - hook for rendering the chart
28+
- Chart generation performance optimization: ~3x speed
29+
- Maximum marker limit increased: ~2x count
30+
- Reduced wasm binary size: ~3%
2831

2932
## [0.10.1] - 2024-03-12
3033

src/apps/weblib/cinterface.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ const char *vizzu_errorMessage(APIHandles::Exception exceptionPtr,
8080
realException =
8181
static_cast<const std::bad_cast *>(exceptionPtr);
8282
break;
83-
case hash("bad_any_cast"):
84-
realException =
85-
static_cast<const std::bad_any_cast *>(exceptionPtr);
86-
break;
8783
case hash("bad_function_call"):
8884
realException =
8985
static_cast<const std::bad_function_call *>(
@@ -336,7 +332,7 @@ void removeEventListener(APIHandles::Chart chart,
336332

337333
void event_preventDefault(APIHandles::Event event)
338334
{
339-
return Interface::getInstance().preventDefaultEvent(event);
335+
return Interface::preventDefaultEvent(event);
340336
}
341337

342338
void chart_animate(APIHandles::Chart chart, void (*callback)(bool))

src/apps/weblib/cinterface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef LIB_CINTERFACE_H
22
#define LIB_CINTERFACE_H
33

4+
#include <base/util/eventdispatcher.h>
45
#include <cstdint>
56
#include <typeinfo>
67

@@ -14,7 +15,7 @@ namespace APIHandles
1415
using Any = const void *;
1516
using Chart = const void *;
1617
using Snapshot = const void *;
17-
using Event = const void *;
18+
using Event = Util::EventDispatcher::Params *;
1819
using Animation = const void *;
1920
using Exception = const void *;
2021
using Canvas = const void *;

0 commit comments

Comments
 (0)