33,509 questions
Tooling
0
votes
0
replies
39
views
The Most Efficient Way for Random Forest Models Serialization Memory-Wise
I am training sklearn.ensemble.RandomForestRegressor on 272k rows of data with 38 features.
{
"n_estimators": 200,
"n_jobs": -1,
"random_state": 42
"...
Best practices
1
vote
1
replies
63
views
How to convert a flat parent-child list from database into a nested tree structure for JSON response in Spring Boot?
When calling my API endpoint, the default repository output returns a flat list array like this
[
{
"id": "root_postgres",
"name": "Main Root",
&...
Score of -1
0 answers
38 views
Cyclic Serialization while using IErrorHandler in Rebus esb
I am experiencing some strange behaviour while using IErrorHandler with Rebus for second level retry and dead-lettering messages.
In my implementation of IErrorHandler as usual I am using the value of ...
Best practices
2
votes
15
replies
351
views
How to properly serialize raw binary data in C/C++?
What is the preferred way to serialize data to raw byte array (without any serialization libs)? I though these variants:
#pragma (pack,1) struct A{...} #pragma (pop) or __attribute((packed))__ ...
Score of 0
1 answer
89 views
How to force reflection free jackson serializers generation
I wonder if there is any way - apart from creating a dummy REST API - to force Quarkus to generate reflection free jackson serializers and deserializers?
My service exports data in JSON and stores ...
Best practices
0
votes
7
replies
150
views
How do I serialize a floating point number?
In the past I've written code to manually serialize a binary representation of a IEEE 754 number, however, it seems like several projects simply reinterpret a floating point number as a byte array and ...
Score of 3
1 answer
154 views
Serialize and deserialize property with dynamically assigned property name based on a type given in an attribute [duplicate]
I'm using newtonsoft.json.
I've got classes created from XSD to C#.
Inside these classes are some properties whose names should dynamically change when serializing in XML, based on the type to as ...
Score of 3
1 answer
114 views
Serialising and Deserialising a System.Data.DataSet to XML with SQL Server UniqueIdentifier using different .NET versions
We have a legacy application that was originally written to connect directly to a SQL Server database using OLEDB.
Since then we have introduced Azure SQL databases (but some of our clients are still ...
Score of 2
1 answer
249 views
How to set up Instant format with Jackson serialization/deserialization
I'm using jackson-module-kotlin:2.21.0 and jackson-datatype-jsr310:2.21.0.
I need to serialize (and then deserialize) java.time.Instant in specified format "yyyy-MM-dd HH:mm:ss"
(without ...
Score of 0
0 answers
34 views
Redisson RMap.getAll() returns incorrectly deserialized objects for large batches, but works for small batches or single get
I am using Redisson RMap as a cache and fetching data in batches using getAll().
Original code
private static final int FETCH_LIMIT = 1000;
private void getResponseForSubsetOfKeys(Set<Object> ...
Advice
0
votes
2
replies
53
views
How can Unity YAML scene files be interpreted in an external runtime?
I'm working on an experimental project called NextLiber VRM, which attempts to interpret Unity scene files outside the Unity runtime.
Unity stores scenes in YAML format, including transforms, ...
Score of 3
1 answer
135 views
C# XML Serialization: Merging multiple lists before saving
I am currently working on a small financial management application and use XmlSerializer to persist my data. I maintain a main list (allRecords) holding all data, and two separate lists (incomeList ...
Score of 0
0 answers
39 views
Serialization with MSR 010B [Flush Command] in AMD CPUs for execution time measure
AMD Processor Programming Reference (PPR) for AMD Family 19h Model 70h, Revision A0 Processors says:
MSR0000_010B [Flush Command] (Core::X86::Msr::FLUSH_CMD)
Writes to this register do not execute ...
Score of 2
1 answer
159 views
Newtonsoft for ISerializable classes with a reference loop - use GetObjectData for serialization and ordinary constructor for deserialization
I have a couple of ISerializable classes (simplified):
internal interface IBase : ISerializable
{
int Number { get; }
}
internal interface ITable : IBase
{
ISection Section { get; }
}
[...
Score of 3
1 answer
191 views
Deserialization via Newtonsoft for classes with a reference loop, private constructors and private/internal properties setters
I have a couple of classes (simplified):
internal interface ITable
{
int Number { get; }
ISection Section { get; }
}
internal class Table : ITable
{
public int Number { get; private init; ...