Complexity to get object from openstack swift - openstack

What is the complexity of Container container = account.getContainer("my-new-container"); from http://docs.ceph.com/docs/master/radosgw/swift/java/
and the complexity of GET /v1/{account}/{container}/{object} from https://developer.openstack.org/api-ref/object-store/index.html#get-object-content-and-metadata.
I guess it is log(n), but I am not sure. I cannot find the document. Maybe I should read the Openstack swift source codes? Could someone give more details?

Related

What is the recommended way to obtain a list of all partitions that a ConcurrentMessageListenerContainer is currently handling

I am looking for the best/recommended way to obtain a list of partitions that a ConcurrentMessageListenerContainer is using while reading from a topic. Currently I am doing this manually, by having an implementation of ConsumerAwareRebalanceListener that is tracking assignments/revocations but I wonder whether there isn't a better/simpler way to achieve this.
The goal is to use this information within the application, so I always need an up-to-date list of partitions. Looking at the API for
ConcurrentMessageListenerContainer, I see that it is exposing
getAssignedPartitions().
A similar question has been asked here but there is no accepted answer until now.
If your ConcurrentMessageListenerContainer is managed by KafkaListenerEndpointRegistry, you could use KafkaListenerEndpointRegistry to get information about your listener containers through container's id and you could see the ContainerProperties, AssignedPartitions,... of this listener container.
Example of using KafkaListenerEndpointRegistry: https://docs.spring.io/spring-kafka/docs/current/reference/html/#pause-resume

Automate Document Checks

this is sort of a weird/complicated question but I thought id ask.
So during the sign up process for my app (I am using flutter and firebase for backend), people have to submit certain documents such as a resume and other official documents. My question was assuming the documents have a standard layout, is there any way to verify that it is the correct type of document automatically? So someone couldn't fake a document and sign up for the app.
I wanted to make it in a way so I wouldn't personally have to go through each document and make sure its the right one.
If anyone has any ideas please ping me and let me know.
Thanks!

How do I use texStorage2D?

Does anyone have a working, end-to-end example of this API in WebGL 2 or could point me to one? I did a search already and couldn't find anything but the API documentation.
I'd like to know how the calls would differ from what I currently do? Do I still need the following calls? Are there equivalents for them for Storage 2D?
createTexture
bindTexture
texSubStorage2D? (how do i upload data?)
activeTexture
framebufferTexture2D
readPixels

LLVM front end register class error OpenCL -- GPU target

I've recently been encountering this error when compiling OpenCL kernel files with my LLVM_IR pass:
aoc: ../../../TargetRegisterInfo.cpp:89: const llvm::TargetRegisterClass* llvm::TargetRegisterInfo::getMinimalPhysRegClass(unsigned int, llvm::EVT) const: Assertion `BestRC && "Couldn't find the register class"' failed.
I'm not sure what this means. What I've read from the documention doesn't make a lot of sense. Basically it means the backend doesn't know what type to place into the register?
Does anyone know what the error means?
It occurs in various kernels and doesn't seem to have a definitive pattern I can show as an example. I can post more details if needed, but really I'd just like to know what the error is telling me.
Thanks ahead of time for any help.
UPDATE:
It seems this command in LLVM is causing the issue:
AllocaInst* llvm::IRBuilder< preserveNames, T, Inserter >::CreateAlloca(Type * Ty, Value * ArraySize = 0,const Twine & Name = "")
It creates this error when I do a nonspecific allocation in this manner. The reason I use this command is that sometimes in a kernel there will be a store value that is a Constant. Since LLVM often requires a Value I needed a way of converting it. So I do a an allocation with an immediate store and load. This was suggested by another SOF user. Does anyone know an alternate method of converting a Constant to a Value in LLVM?
Thanks all.
Ok it seems a conventional:
Value *new_val = dyn_cast<Value>(old_val);
Works perfectly fine. Hopefully this knowledge will help someone else.
UPDATE3: Scratch that. Dynamic cast doesn't convert Constant to a Value type. So if anyone knows how to do that, please let me know.
I admit I don't understand the assertion error you get. However:
The reason I use this command is that sometimes in a kernel there will be a store value that is a Constant. Since LLVM often requires a Value I needed a way of converting it. So I do a an allocation with an immediate store and load.
That doesn't make sense to me:
Any llvm::Constant is already an llvm::Value
Storing a value and then loading it back seems like an expensive nop...

MPXJ - get ResourceAssignment baseline values

I'm trying to display the Baseline Start, Finish, Cost, and Work values for a ResourceAssignment, but cannot seem to find any methods on the ResourceAssignment object that would provide this information. Anybody know if this is possible?
I know the information is stored because I can see it in MS Project, and I can see it in the XML version of the project file. Just can't see in the API where to get access to it.
In case anybody cares, Jon has fixed this in the latest version of the MPXJ source code. You can see the bug request here.

Resources