From 8830fecb4a12eb5d1579012f74894eaa67d4e064 Mon Sep 17 00:00:00 2001 From: ccuser44 <68124053+ccuser44@users.noreply.github.com> Date: Wed, 27 Nov 2024 00:50:06 +0200 Subject: [PATCH] Use JIT compiler optimization for Linked List, GoodSignal and Type Checker modules (#1770) * Use native for linked list module * Use native for GoodSignal * Use native for typechecker --- MainModule/Server/Shared/DoubleLinkedList.luau | 1 + MainModule/Server/Shared/GoodSignal.luau | 1 + MainModule/Server/Shared/Typechecker.luau | 1 + 3 files changed, 3 insertions(+) diff --git a/MainModule/Server/Shared/DoubleLinkedList.luau b/MainModule/Server/Shared/DoubleLinkedList.luau index 4b6301730a..62d4a668e5 100644 --- a/MainModule/Server/Shared/DoubleLinkedList.luau +++ b/MainModule/Server/Shared/DoubleLinkedList.luau @@ -1,3 +1,4 @@ +--!native --// File: LinkedList.lua --// Desc: Provides a more performance-friendly alternative to large tables that get shifted in indexes constantly --// Author: Coasterteam diff --git a/MainModule/Server/Shared/GoodSignal.luau b/MainModule/Server/Shared/GoodSignal.luau index 046cba8a77..5bed213c20 100644 --- a/MainModule/Server/Shared/GoodSignal.luau +++ b/MainModule/Server/Shared/GoodSignal.luau @@ -1,3 +1,4 @@ +--!native -------------------------------------------------------------------------------- -- Batched Yield-Safe Signal Implementation -- -- This is a Signal class which has effectively identical behavior to a -- diff --git a/MainModule/Server/Shared/Typechecker.luau b/MainModule/Server/Shared/Typechecker.luau index 3abc92022f..fd6409cf2b 100644 --- a/MainModule/Server/Shared/Typechecker.luau +++ b/MainModule/Server/Shared/Typechecker.luau @@ -1,3 +1,4 @@ +--!native --[[ t: a runtime typechecker for Roblox