Skip to content

Commit

Permalink
Merge pull request #521 from vizzuhq/memory-footprint-v1
Browse files Browse the repository at this point in the history
Reserve marker's space
  • Loading branch information
schaumb authored May 16, 2024
2 parents e7a8708 + 3402a37 commit 573e50b
Show file tree
Hide file tree
Showing 99 changed files with 2,080 additions and 2,165 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
- plugin: canvasRenderer - plugin for rendering the chart on a htmlcanvas compatible canvas
- hook: start - hook for starting the rendering loop
- hook: render - hook for rendering the chart
- Chart generation performance optimization: ~3x speed
- Maximum marker limit increased: ~2x count
- Reduced wasm binary size: ~3%

## [0.10.1] - 2024-03-12

Expand Down
6 changes: 1 addition & 5 deletions src/apps/weblib/cinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ const char *vizzu_errorMessage(APIHandles::Exception exceptionPtr,
realException =
static_cast<const std::bad_cast *>(exceptionPtr);
break;
case hash("bad_any_cast"):
realException =
static_cast<const std::bad_any_cast *>(exceptionPtr);
break;
case hash("bad_function_call"):
realException =
static_cast<const std::bad_function_call *>(
Expand Down Expand Up @@ -336,7 +332,7 @@ void removeEventListener(APIHandles::Chart chart,

void event_preventDefault(APIHandles::Event event)
{
return Interface::getInstance().preventDefaultEvent(event);
return Interface::preventDefaultEvent(event);
}

void chart_animate(APIHandles::Chart chart, void (*callback)(bool))
Expand Down
3 changes: 2 additions & 1 deletion src/apps/weblib/cinterface.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef LIB_CINTERFACE_H
#define LIB_CINTERFACE_H

#include <base/util/eventdispatcher.h>
#include <cstdint>
#include <typeinfo>

Expand All @@ -14,7 +15,7 @@ namespace APIHandles
using Any = const void *;
using Chart = const void *;
using Snapshot = const void *;
using Event = const void *;
using Event = Util::EventDispatcher::Params *;
using Animation = const void *;
using Exception = const void *;
using Canvas = const void *;
Expand Down
Loading

0 comments on commit 573e50b

Please sign in to comment.