question

Upvotes
Accepted
7 1 0 8

EMA Libaray performance

Hi,

I am using EMA library and have to call different function based on field type which impacting performance of application.

As previously, we used RFA where we have simple function call , Is there any api like below in EMA too?

formatter.addField(fieldName, fidID, field_value)

Appreciate any help.


Thanks

 
              
#technologyema-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

@vikas.chaudhary

Thanks for reaching out to us.

I assumed that you mean the MDContribFormatter example class in the legacy market data interface example.

 MDContribFormatter _formatter;

The legacy market data interface uses the MarketFeed data format which is a string representation so the data is encoded as a string.

    public void appendField(String fid, String value)
    {
        // Allow append field after making buffer
        if (_buffer.length() != 0 && _buffer.charAt(_buffer.length() - 1) == FS)
            _buffer.deleteCharAt(_buffer.length() - 1);
        _buffer.append(RS);
        _buffer.append(fid);
        _buffer.append(US);
        _buffer.append(value);
    }

However, EMA uses the Refintiv Wire Format (RWF) which is a binary representation and each data type has its own encoding function. Therefore, the application needs to know the data type of the data and then call the appropriate function to encode the data.

I hope that this information is of help.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.